home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / formats / iff / newiff.lzh / NewIFF / NewIFF.lzh / newiff / Makefile.SAS < prev   
Makefile  |  1992-05-18  |  3KB  |  116 lines

  1.  
  2. #MYLIBS= LIB:debug.lib
  3.  
  4. CC = lc
  5. ASM = asm
  6.  
  7. CFLAGS = -cfistq -v -j73 -iINCLUDE:
  8. AFLAGS = -iINCLUDE:
  9. LFLAGS = SC BATCH ND
  10.  
  11. M      = modules/
  12. A      = apps/
  13.  
  14.  
  15. # Our iffparse support object modules to link with
  16. IFFO      = $(M)parse.o $(M)iffpstrings.o $(M)Hook.o
  17. ILBMRO    = $(M)ilbmr.o $(M)unpacker.o
  18. ILBMSO    = $(M)getdisplay.o $(M)screen.o
  19. ILBMLO    = $(M)loadilbm.o $(M)getbitmap.o
  20. ILBMRSO   = $(IFFO) $(ILBMRO) $(ILBMSO)
  21. ILBMWO    = $(M)saveilbm.o $(M)ilbmw.o $(M)packer.o
  22. ILBMO     = $(IFFO) $(ILBMRO) $(ILBMLO) $(ILBMSO) $(ILBMWO)
  23. EXTRAO    = $(M)copychunks.o $(M)screendump.o $(M)bmprintc.o
  24.  
  25.  
  26. # Our iffparse applications
  27. APP1   = $(A)ILBMDemo/ILBMDemo
  28. APP2   = $(A)ILBMLoad/ILBMLoad
  29. APP3   = $(A)Play8SVX/Play8SVX
  30. APP4   = $(A)ILBMtoC/ILBMtoC
  31. APP5   = $(A)ILBMtoRaw/ILBMtoRaw
  32. APP6   = $(A)ScreenSave/ScreenSave
  33. APP7   = $(A)RawtoILBM/RawtoILBM
  34. APP8   = $(A)24bitDemo/24bitDemo
  35.  
  36. # The object modules and special includes needed by each application example
  37. APP1O  = $(APP1).o $(ILBMO) $(M)screendump.o $(M)copychunks.o
  38. APP2O  = $(APP2).o $(IFFO) $(ILBMRO) $(ILBMLO) $(ILBMSO)
  39. APP3O  = $(APP3).o $(IFFO)
  40. APP4O  = $(APP4).o $(IFFO) $(ILBMRO) $(ILBMLO) $(M)bmprintc.o
  41. APP5O  = $(APP5).o $(IFFO) $(ILBMRO) $(ILBMLO)
  42. APP6O  = $(APP6).o $(IFFO) $(ILBMWO)
  43. APP7O  = $(APP7).o $(IFFO) $(ILBMWO)
  44. APP8O  = $(APP8).o $(IFFO) $(ILBMRO) $(ILBMLO) $(ILBMSO) $(ILBMWO)
  45.  
  46. .SUFFIXES:
  47. .SUFFIXES:    .o .c .h .asm .i
  48.  
  49. # Make all of the applications
  50. all:    $(APP1) $(APP2) $(APP3) $(APP4) $(APP5) $(APP6) $(APP7) $(APP8)
  51.  
  52. # Linkage for each application
  53.  
  54. $(APP1): $(APP1O)
  55.   blink <WITH <
  56. FROM lib:c.o $(APP1O)
  57. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  58. TO $(APP1) $(LFLAGS)
  59. <
  60.  
  61. $(APP2): $(APP2O)
  62.   blink <WITH <
  63. FROM lib:c.o $(APP2O)
  64. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  65. TO $(APP2) $(LFLAGS)
  66. <
  67.  
  68. $(APP3): $(APP3O)
  69.   blink <WITH <
  70. FROM lib:c.o $(APP3O)
  71. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  72. TO $(APP3) $(LFLAGS)
  73. <
  74.  
  75. $(APP4): $(APP4O)
  76.   blink <WITH <
  77. FROM lib:c.o $(APP4O)
  78. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  79. TO $(APP4) $(LFLAGS)
  80. <
  81.  
  82. $(APP5): $(APP5O)
  83.   blink <WITH <
  84. FROM lib:c.o $(APP5O)
  85. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  86. TO $(APP5) $(LFLAGS)
  87. <
  88.  
  89. $(APP6): $(APP6O)
  90.   blink <WITH <
  91. FROM lib:c.o $(APP6O)
  92. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  93. TO $(APP6) $(LFLAGS)
  94. <
  95.  
  96. $(APP7): $(APP7O)
  97.   blink <WITH <
  98. FROM lib:c.o $(APP7O)
  99. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  100. TO $(APP7) $(LFLAGS)
  101. <
  102.  
  103. $(APP8): $(APP8O)
  104.   blink <WITH <
  105. FROM lib:c.o $(APP8O)
  106. LIBRARY lib:lc.lib LIB:amiga.lib $(MYLIBS)
  107. TO $(APP8) $(LFLAGS)
  108. <
  109.  
  110. .c.o:
  111.     $(CC) $(CFLAGS) $*.c
  112.  
  113. .asm.o:
  114.     $(ASM) $(AFLAGS) $*.asm
  115.  
  116.